<div style="display:block; padding-right: 20px;">
<div style="float:left;">
<form method="post" action="<?=site_url()?>players/show_players.html">
    <label>!!Режим сортировки: </label>
        <select name="sort_mode">
            <option value="single" <? if (!$sort_mode) echo 'selected="selected"';?>>Одиночная</option>
            <option value="multi"  <? if ($sort_mode) echo 'selected="selected"';?>>Мультисортировка</option>
        </select>
    <input type="submit" value="Изменить!" name="submit_sort_mode">
<br />

    <select name="ht_server">
            <?
            for ($i=70; $i<100; $i++)
            {
                echo '<option value="'.$i.'"';
                if ($ht_server==$i) echo ' selected="selected" ';
                echo '>www'.$i.'</option>';
            }
            ?>
    </select>
    <br />
    <input type="submit" value="Изменить!" name="submit_ht_server">
</form>
</div>
<div style="float:right;">
<?
$this->load->helper('form');
if ($this->auth->hasAccess('players/show_players'))
    {
    echo form_open(str_replace("show_players", "export_info", $this->uri->uri_string()));
    echo form_submit('get_export', 'Экспорт таблицы');
    echo form_close();
    }

if (is_array($sort_directions))
    {
    $i=1;

    foreach ($sort_directions as $key => $sort)
        {
        echo "<strong>" . $i . ".</strong>";
        echo $key . "[$sort] ";
        $i++;
        }
    }

echo form_open('players/show_players');
echo form_label('Возраст ');
echo form_label(' от: ');
echo form_input(array('name'=>'search_params[age][from]', 'value'=>$form_values['age']['from'], 'size'=>'4'));
echo form_label('до: ');
echo form_input( array('name'=> 'search_params[age][to]','value'=>$form_values['age']['to'], 'size'=>'4'));
echo "<br />";

if ($this->auth->hasAccess('players/show_players','view_all'))
    {
    $skill_select=array
        (
        ''   => '---',
        'kp' => 'Keeper',
        'df' => 'Defender',
        'pm' => 'Playmaker',
        'wg' => 'Winger',
        'ps' => 'Passing',
        'sc' => 'Scorer',
        'st' => 'SetPiecer',
        'lid'=>  'Leadership',
        );

    for ($i=0; $i < 20; $i++)
        {
        $skill_select_values[$i]=$i;
        }
    
  
    for ($i=0; $i < 4; $i++)
        {
        echo form_dropdown('search_params[skill][' . $i . ']', $skill_select, $form_values['skill'][$i]);
        echo form_label(' от: ');
        echo form_dropdown('search_params[skill_values][' . $i . '][from]', $skill_select_values,
                           $form_values['skill_values'][$i]['from']);
        //echo form_input('search_params[skill_values]['.$i.'][from]', $form_values['skill_values'][$i]['from']);
        echo form_label('  до: ');
        echo form_dropdown('search_params[skill_values][' . $i . '][to]', $skill_select_values,
                           $form_values['skill_values'][$i]['to']);
        //echo form_input('search_params[skill_values]['.$i.'][to]', $form_values['skill_values'][$i]['to']);
        echo "<br />";
        }
    }

echo form_label('Только актуальные') . ' '. form_checkbox('search_params[only_actual]','Actual',$form_values['only_actual']).'<br />';
echo form_submit('send_search', 'Поиск!');
echo form_submit('reset_search', 'Очистить поиск!');

echo form_close();
?>
</div>
</div>

<div style="display:block; float:left;">
<?=$pagination?>

<?php
  echo $content;
?></div>